package com.itheima.service;

import com.itheima.domain.User;
import com.itheima.domain.UserSelective;
import entity.PageResult;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created with IntelliJ IDEA.
 * @Author: auuuu4
 * @Date: 2024/07/09/11:21
 * @Description:
 */
public interface UserService {
    User findByEmail(String email);

    PageResult selectAllUser(Integer pageNum,Integer pageSize);

    User findById(int id);
    @Transactional
    int addUser(User user);

    PageResult selectUsersSelective(UserSelective selective);

    int updateUser(User user);

    boolean isUserExist(String email);
}
